package cn.yoaket.exception;

/**
 * @author Alex
 */
public class ContextException extends Exception{
    public enum Type{
        //节点找不到错误
        NODE_ERROR,
        FORMAT_ERROR,
        //属性找不到异常
        FIELD_ERROR,
        //参数不正确异常
        PARAM_ERROR,
        //对象创建异常
        INSTANCE_ERROR,
        //方调用异常
        INVOKE_ERROR,
        //属性赋值异常
        ASSIGNMENT_ERROR
    }

    Type type;

    public ContextException(Type type){
        this.type = type;
    }

    public Type getType(){
        return type;
    }
}
